package com.ssm.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.EnumerablePropertySource;


@Slf4j
public class MyIni implements ApplicationContextInitializer<ConfigurableApplicationContext> {
    @Override
    public void initialize(ConfigurableApplicationContext applicationContext) {
        log.info("MyIni initialized");

//        applicationContext.getEnvironment().getPropertySources().forEach(propertySource -> {
//            System.out.println(propertySource);
//        });
    }
}
